<% @page_title = 'メンバー ＞ 一覧' %>
<h1>Listing members</h1>

<table class="confirm" cellpadding="5">
  <tr>
    <th>Identifier</th>
    <th>Name</th>
    <th>Department</th>
	<th colspan="3">Operations</th>
  </tr>

<% for member in @members %>
  <tr>
    <td><%=h member.identifier %></td>
    <td><%=h member.name %></td>
    <td><%=h member.department.name %></td>
    <td><%= link_to 'Show', member %></td>
    <td><%= link_to 'Edit', edit_member_path(member) %></td>
    <td><%= link_to 'Destroy', member, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New member', new_member_path %>
